import {
	request
} from '@/utils/request.js'

/**
 * 获取进行中活动
 * @param {Object} data
 */
export function getActivityDetailApi(data) {
	return request("/third_api/getActive", data, "GET")
}


/**
 * @param {Number} data.activity_id 活动ID
 */
export function getActivityCoupnApi(data){
	return request("/third_api/getPrize", data, "GET")
}

/**
 * 选择奖品
 * @param {Number} data.prize_id 奖品ID
 * @param {Number} data.activity_id 活动ID
 * @param {Number} data.flag  1：选择礼品 2：重选礼品
 */
export function selectPrizeApi(data){
	return request("/third_api/choosePrize", data, "POST")
}
